using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN UserRoleServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: UserRoleServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class UserRoleService : IUserRoleService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: UserRole_ID</para>
		/// <para>Output: UserRoleEntity</para>
		///</summary>
		public UserRoleEntity SelectOne(int UserRole_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectOne(UserRole_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAll(){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllFilter(string strFilter){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(UserRoleEntity o){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: UserRoleEntity</para>
		///</summary>
		public UserRoleEntity SaveRet(UserRoleEntity o){
			UserRoleDAO dao = new UserRoleDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<UserRoleEntity> list){
			UserRoleDAO dao = new UserRoleDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SaveListRet(List<UserRoleEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(UserRoleEntity o){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<UserRoleEntity> list){
			UserRoleDAO dao = new UserRoleDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateUser_ID</para>
		/// <para>Input: NewUser_ID,UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateUser_ID(int NewUser_ID,int UserRole_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.UpdateUser_ID(NewUser_ID,UserRole_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateRole_ID</para>
		/// <para>Input: NewRole_ID,UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateRole_ID(int NewRole_ID,int UserRole_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.UpdateRole_ID(NewRole_ID,UserRole_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(UserRoleEntity o){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int UserRole_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.DeleteByID(UserRole_ID);
		}
		#endregion

		#region Select join to RolesUsers functions
		#endregion

		#region Select join to Roles functions
		#endregion

		#region Select join to Users functions
		#endregion

		#region Select,delete by UserRole_ID functions
		#endregion

		#region Select,delete by User_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByUser_ID(int User_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByUser_ID(User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		public DataSet SelectAllDSByUser_ID(int User_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByUser_ID(User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByUser_IDFilter(string strFilter,int User_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByUser_IDFilter(strFilter,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		public DataSet SelectAllDSByUser_IDFilter(string strFilter,int User_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByUser_IDFilter(strFilter,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByUser_ID(int User_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.DeleteByUser_ID(User_ID);
		}
		#endregion

		#region Select,delete by Role_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByRole_ID(int Role_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByRole_ID(Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		public DataSet SelectAllDSByRole_ID(int Role_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByRole_ID(Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByRole_IDFilter(string strFilter,int Role_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByRole_IDFilter(strFilter,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		public DataSet SelectAllDSByRole_IDFilter(string strFilter,int Role_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByRole_IDFilter(strFilter,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByRole_ID(int Role_ID){
			UserRoleDAO dao = new UserRoleDAO();
			return dao.DeleteByRole_ID(Role_ID);
		}
		#endregion

		#region Select,Delete by User_IDRole_ID
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByUser_IDRole_ID(int User_ID,int Role_ID)
		{
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByUser_IDRole_ID(User_ID,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSByUser_IDRole_ID(int User_ID,int Role_ID)
		{
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByUser_IDRole_ID(User_ID,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		public List<UserRoleEntity> SelectAllByUser_IDRole_IDFilter(string strFilter,int User_ID,int Role_ID)
		{
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllByUser_IDRole_IDFilter(strFilter,User_ID,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSByUser_IDRole_IDFilter(string strFilter,int User_ID,int Role_ID)
		{
			UserRoleDAO dao = new UserRoleDAO();
			return dao.SelectAllDSByUser_IDRole_IDFilter(strFilter,User_ID,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByUser_IDRole_ID(int User_ID,int Role_ID)
{
			UserRoleDAO dao = new UserRoleDAO();
			return dao.DeleteByUser_IDRole_ID(User_ID,Role_ID);
		}
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END UserRoleWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

